package cn.bonoon.core.plugins;

import java.util.List;

import cn.bonoon.entities.interacting.AnnouncementEntity;
import cn.bonoon.kernel.support.IOperator;
import cn.bonoon.kernel.support.models.Item;
import cn.bonoon.kernel.support.services.GenericService;

public interface AnnouncementService extends GenericService<AnnouncementEntity> {
	
	int DEFAULT_PAGE_SIZE = 10;

	List<AnnouncementEntity> moduleAnnouncements(IOperator user, String key, int page);
	
	/** 取得最新的公告 */
	List<AnnouncementEntity> newests(IOperator user, String key,int limit);

	void changeReleaseStatus(IOperator user, Long id);

//	/** 当前这个公告已经发布的子系统 */
//	List<String> selectedPlaform(IOperator user, Long id);

	/** 我可以发布公告的子系统 */
	List<Item> releasePlaform(IOperator user, Long id);
}
